﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

using ManYan.Common.DomainInterface;

namespace ManYan.Domain.Model.Entity
{
    [Table("tb_wechat_user")]
    public class WechatUser:IEntity
    {
        [Key]
        public Guid Id { get; set; }

        public Guid UserId { get; set; }
        public string? OpenId { get; set; }
        /// <summary>
        /// 微信联合ID
        /// </summary>
        public string? UnionId { get; set; }
        /// <summary>
        /// 微信昵称
        /// </summary>
        public string? NickName { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string? Avatar { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string? Sex { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string? City { get; set; }
        /// <summary>
        /// 国家
        /// </summary>
        public string? Country { get; set; }
        /// <summary>
        /// 语言
        /// </summary>
        public string? Language { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string? Province { get; set; }
        /// <summary>
        /// 认为人和部门是一对一的关系，但是实际存在一个属于两个部门，就可以用关系表
        /// </summary>
        public Guid OrgId { get; set; }
    }
}
